package com.czl.common.area;

import java.io.Serializable;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

public class Location implements Serializable {
    private static final long serialVersionUID = -7602887110755779682L;
    private Integer localId;
    public static Map<Integer, String> lm = new LinkedHashMap();
    public static Map<Integer, String> sl = new LinkedHashMap();

    public Location() {
    }

    public Integer getLocalId() {
        return this.localId;
    }

    public void setLocalId(Integer localId) {
        this.localId = localId;
    }

    public String getLocalName() {
        return this.localId != null && this.localId < 100 ? (String)lm.get(this.localId) : (String)sl.get(this.localId);
    }

    public static Map<Integer, String> getAllLocation() {
        return lm;
    }

    public static Map<Integer, String> getCity(Integer no) {
        Iterator<Integer> keys = sl.keySet().iterator();
        LinkedHashMap rMap = new LinkedHashMap();

        while(keys.hasNext()) {
            Integer key = (Integer)keys.next();
            if (key.toString().startsWith(no.toString())) {
                rMap.put(key, sl.get(key));
            }
        }

        return rMap;
    }

    public static String getLocationName(int location, int sublocation, String split) {
        String city = (String)lm.get(location);
        if (city == null) {
            city = "";
        }

        String subcity = (String)sl.get(sublocation);
        if (subcity == null) {
            subcity = "";
        }

        return city + split + subcity;
    }

    public static void main(String[] args) {
        System.out.println(getLocationName(11, 1100, ""));
    }

    static {
        lm.put(11, "北京");
        lm.put(12, "天津");
        lm.put(13, "河北");
        lm.put(14, "山西");
        lm.put(15, "内蒙古");
        lm.put(21, "辽宁");
        lm.put(22, "吉林");
        lm.put(23, "黑龙江");
        lm.put(31, "上海");
        lm.put(32, "江苏");
        lm.put(33, "浙江");
        lm.put(34, "安徽");
        lm.put(35, "福建");
        lm.put(36, "江西");
        lm.put(37, "山东");
        lm.put(41, "河南");
        lm.put(42, "湖北");
        lm.put(43, "湖南");
        lm.put(44, "广东");
        lm.put(45, "广西");
        lm.put(46, "海南");
        lm.put(50, "重庆");
        lm.put(51, "四川");
        lm.put(52, "贵州");
        lm.put(53, "云南");
        lm.put(54, "西藏");
        lm.put(61, "陕西");
        lm.put(62, "甘肃");
        lm.put(63, "青海");
        lm.put(64, "宁夏");
        lm.put(65, "新疆");
        lm.put(71, "台湾");
        lm.put(81, "香港");
        lm.put(82, "澳门");
        lm.put(83, "钓鱼岛");
        lm.put(98, "美国");
        lm.put(99, "国外");
        sl.put(1101, "东城");
        sl.put(1102, "西城");
        sl.put(1103, "崇文");
        sl.put(1104, "宣武");
        sl.put(1105, "朝阳");
        sl.put(1106, "丰台");
        sl.put(1107, "石景山");
        sl.put(1108, "海淀");
        sl.put(1109, "门头沟");
        sl.put(1111, "房山");
        sl.put(1112, "通州");
        sl.put(1113, "顺义");
        sl.put(1121, "昌平");
        sl.put(1124, "大兴");
        sl.put(1126, "平谷");
        sl.put(1127, "怀柔");
        sl.put(1128, "密云");
        sl.put(1129, "延庆");
        sl.put(1201, "和平");
        sl.put(1202, "河东");
        sl.put(1203, "河西");
        sl.put(1204, "南开");
        sl.put(1205, "河北");
        sl.put(1206, "红桥");
        sl.put(1207, "塘沽");
        sl.put(1208, "汉沽");
        sl.put(1209, "大港");
        sl.put(1210, "东丽");
        sl.put(1211, "西青");
        sl.put(1212, "津南");
        sl.put(1213, "北辰");
        sl.put(1221, "宁河");
        sl.put(1222, "武清");
        sl.put(1223, "静海");
        sl.put(1224, "宝坻");
        sl.put(1225, "蓟县");
        sl.put(1301, "石家庄");
        sl.put(1302, "唐山");
        sl.put(1303, "秦皇岛");
        sl.put(1304, "邯郸");
        sl.put(1305, "邢台");
        sl.put(1306, "保定");
        sl.put(1307, "张家口");
        sl.put(1308, "承德");
        sl.put(1309, "沧州");
        sl.put(1310, "廊坊");
        sl.put(1311, "衡水");
        sl.put(1401, "太原");
        sl.put(1402, "大同");
        sl.put(1403, "阳泉");
        sl.put(1404, "长治");
        sl.put(1405, "晋城");
        sl.put(1406, "朔州");
        sl.put(1407, "晋中");
        sl.put(1408, "运城");
        sl.put(1409, "忻州");
        sl.put(1410, "临汾");
        sl.put(1411, "吕梁");
        sl.put(1501, "呼和浩特");
        sl.put(1502, "包头");
        sl.put(1503, "乌海");
        sl.put(1504, "赤峰");
        sl.put(1505, "通辽");
        sl.put(1506, "鄂尔多斯");
        sl.put(1507, "呼伦贝尔");
        sl.put(1508, "巴彦淖尔");
        sl.put(1509, "乌兰察布");
        sl.put(1510, "巴彦淖尔盟");
        sl.put(1511, "海拉尔");
        sl.put(1512, "集宁");
        sl.put(1513, "巴彦浩特");
        sl.put(1514, "乌兰浩特");
        sl.put(1515, "锡林浩特");
        sl.put(1516, "临河");
        sl.put(1517, "乌兰察布盟");
        sl.put(1518, "兴安盟");
        sl.put(1519, "锡林郭勒盟");
        sl.put(1520, "阿拉善盟");
        sl.put(1522, "兴安");
        sl.put(1525, "锡林郭勒");
        sl.put(1529, "阿拉善");
        sl.put(2101, "沈阳");
        sl.put(2102, "大连");
        sl.put(2103, "鞍山");
        sl.put(2104, "抚顺");
        sl.put(2105, "本溪");
        sl.put(2106, "丹东");
        sl.put(2107, "锦州");
        sl.put(2108, "营口");
        sl.put(2109, "阜新");
        sl.put(2110, "辽阳");
        sl.put(2111, "盘锦");
        sl.put(2112, "铁岭");
        sl.put(2113, "朝阳");
        sl.put(2114, "葫芦岛");
        sl.put(2201, "长春");
        sl.put(2202, "吉林");
        sl.put(2203, "四平");
        sl.put(2204, "辽源");
        sl.put(2205, "通化");
        sl.put(2206, "白山");
        sl.put(2207, "松原");
        sl.put(2208, "白城");
        sl.put(2209, "梅河口");
        sl.put(2210, "珲春");
        sl.put(2211, "延吉");
        sl.put(2224, "延边");
        sl.put(2301, "哈尔滨");
        sl.put(2302, "齐齐哈尔");
        sl.put(2303, "鸡西");
        sl.put(2304, "鹤岗");
        sl.put(2305, "双鸭山");
        sl.put(2306, "大庆");
        sl.put(2307, "伊春");
        sl.put(2308, "佳木斯");
        sl.put(2309, "七台河");
        sl.put(2310, "牡丹江");
        sl.put(2311, "黑河");
        sl.put(2312, "绥化");
        sl.put(2313, "未知");
        sl.put(2327, "大兴安岭");
        sl.put(3101, "黄浦");
        sl.put(3102, "南区");
        sl.put(3103, "卢湾");
        sl.put(3104, "徐汇");
        sl.put(3105, "长宁");
        sl.put(3106, "静安");
        sl.put(3107, "普陀");
        sl.put(3108, "闸北");
        sl.put(3109, "虹口");
        sl.put(3110, "杨浦");
        sl.put(3112, "闵行");
        sl.put(3113, "宝山");
        sl.put(3114, "嘉定");
        sl.put(3115, "浦东新区");
        sl.put(3116, "金山");
        sl.put(3117, "松江");
        sl.put(3125, "南汇");
        sl.put(3126, "奉贤");
        sl.put(3129, "青浦");
        sl.put(3130, "崇明");
        sl.put(3201, "南京");
        sl.put(3202, "无锡");
        sl.put(3203, "徐州");
        sl.put(3204, "常州");
        sl.put(3205, "苏州");
        sl.put(3206, "南通");
        sl.put(3207, "连云港");
        sl.put(3208, "淮安");
        sl.put(3209, "盐城");
        sl.put(3210, "扬州");
        sl.put(3211, "镇江");
        sl.put(3212, "泰州");
        sl.put(3213, "宿迁");
        sl.put(3301, "杭州");
        sl.put(3302, "宁波");
        sl.put(3303, "温州");
        sl.put(3304, "嘉兴");
        sl.put(3305, "湖州");
        sl.put(3306, "绍兴");
        sl.put(3307, "金华");
        sl.put(3308, "衢州");
        sl.put(3309, "舟山");
        sl.put(3310, "台州");
        sl.put(3311, "丽水");
        sl.put(3401, "合肥");
        sl.put(3402, "芜湖");
        sl.put(3403, "蚌埠");
        sl.put(3404, "淮南");
        sl.put(3405, "马鞍山");
        sl.put(3406, "淮北");
        sl.put(3407, "铜陵");
        sl.put(3408, "安庆");
        sl.put(3410, "黄山");
        sl.put(3411, "滁州");
        sl.put(3412, "阜阳");
        sl.put(3413, "宿州");
        sl.put(3414, "巢湖");
        sl.put(3415, "六安");
        sl.put(3416, "亳州");
        sl.put(3417, "池州");
        sl.put(3418, "宣城");
        sl.put(3501, "福州");
        sl.put(3502, "厦门");
        sl.put(3503, "莆田");
        sl.put(3504, "三明");
        sl.put(3505, "泉州");
        sl.put(3506, "漳州");
        sl.put(3507, "南平");
        sl.put(3508, "龙岩");
        sl.put(3509, "宁德");
        sl.put(3601, "南昌");
        sl.put(3602, "景德镇");
        sl.put(3603, "萍乡");
        sl.put(3604, "九江");
        sl.put(3605, "新余");
        sl.put(3606, "鹰潭");
        sl.put(3607, "赣州");
        sl.put(3608, "吉安");
        sl.put(3609, "宜春");
        sl.put(3610, "抚州");
        sl.put(3611, "上饶");
        sl.put(3701, "济南");
        sl.put(3702, "青岛");
        sl.put(3703, "淄博");
        sl.put(3704, "枣庄");
        sl.put(3705, "东营");
        sl.put(3706, "烟台");
        sl.put(3707, "潍坊");
        sl.put(3708, "济宁");
        sl.put(3709, "泰安");
        sl.put(3710, "威海");
        sl.put(3711, "日照");
        sl.put(3712, "莱芜");
        sl.put(3713, "临沂");
        sl.put(3714, "德州");
        sl.put(3715, "聊城");
        sl.put(3716, "滨州");
        sl.put(3717, "菏泽");
        sl.put(4101, "郑州");
        sl.put(4102, "开封");
        sl.put(4103, "洛阳");
        sl.put(4104, "平顶山");
        sl.put(4105, "安阳");
        sl.put(4106, "鹤壁");
        sl.put(4107, "新乡");
        sl.put(4108, "焦作");
        sl.put(4109, "濮阳");
        sl.put(4110, "许昌");
        sl.put(4111, "漯河");
        sl.put(4112, "三门峡");
        sl.put(4113, "南阳");
        sl.put(4114, "商丘");
        sl.put(4115, "信阳");
        sl.put(4116, "周口");
        sl.put(4117, "驻马店");
        sl.put(4118, "潢川");
        sl.put(4119, "济源");
        sl.put(4201, "武汉");
        sl.put(4202, "黄石");
        sl.put(4203, "十堰");
        sl.put(4204, "仙桃");
        sl.put(4205, "宜昌");
        sl.put(4206, "襄樊");
        sl.put(4207, "鄂州");
        sl.put(4208, "荆门");
        sl.put(4209, "孝感");
        sl.put(4210, "荆州");
        sl.put(4211, "黄冈");
        sl.put(4212, "咸宁");
        sl.put(4213, "随州");
        sl.put(4214, "江汉");
        sl.put(4215, "天门");
        sl.put(4216, "潜江");
        sl.put(4217, "神农架林区");
        sl.put(4228, "恩施");
        sl.put(4301, "长沙");
        sl.put(4302, "株洲");
        sl.put(4303, "湘潭");
        sl.put(4304, "衡阳");
        sl.put(4305, "邵阳");
        sl.put(4306, "岳阳");
        sl.put(4307, "常德");
        sl.put(4308, "张家界");
        sl.put(4309, "益阳");
        sl.put(4310, "郴州");
        sl.put(4311, "永州");
        sl.put(4312, "怀化");
        sl.put(4313, "娄底");
        sl.put(4314, "株洲");
        sl.put(4315, "吉首");
        sl.put(4331, "湘西");
        sl.put(4401, "广州");
        sl.put(4402, "韶关");
        sl.put(4403, "深圳");
        sl.put(4404, "珠海");
        sl.put(4405, "汕头");
        sl.put(4406, "佛山");
        sl.put(4407, "江门");
        sl.put(4408, "湛江");
        sl.put(4409, "茂名");
        sl.put(4410, "顺德");
        sl.put(4411, "潮阳");
        sl.put(4412, "肇庆");
        sl.put(4413, "惠州");
        sl.put(4414, "梅州");
        sl.put(4415, "汕尾");
        sl.put(4416, "河源");
        sl.put(4417, "阳江");
        sl.put(4418, "清远");
        sl.put(4419, "东莞");
        sl.put(4420, "中山");
        sl.put(4451, "潮州");
        sl.put(4452, "揭阳");
        sl.put(4453, "云浮");
        sl.put(4501, "南宁");
        sl.put(4502, "柳州");
        sl.put(4503, "桂林");
        sl.put(4504, "梧州");
        sl.put(4505, "北海");
        sl.put(4506, "防城港");
        sl.put(4507, "钦州");
        sl.put(4508, "贵港");
        sl.put(4509, "玉林");
        sl.put(4510, "百色");
        sl.put(4511, "贺州");
        sl.put(4512, "河池");
        sl.put(4513, "来宾");
        sl.put(4514, "崇左");
        sl.put(4601, "海口");
        sl.put(4602, "三亚");
        sl.put(4603, "儋州");
        sl.put(5001, "万州");
        sl.put(5002, "涪陵");
        sl.put(5003, "渝中");
        sl.put(5004, "大渡口");
        sl.put(5005, "江北");
        sl.put(5006, "沙坪坝");
        sl.put(5007, "九龙坡");
        sl.put(5008, "南岸");
        sl.put(5009, "北碚");
        sl.put(5010, "万盛");
        sl.put(5011, "双桥");
        sl.put(5012, "渝北");
        sl.put(5013, "巴南");
        sl.put(5021, "长寿");
        sl.put(5022, "綦江");
        sl.put(5023, "潼南");
        sl.put(5024, "铜梁");
        sl.put(5025, "大足");
        sl.put(5026, "荣昌");
        sl.put(5027, "璧山");
        sl.put(5028, "梁平");
        sl.put(5029, "城口");
        sl.put(5030, "丰都");
        sl.put(5031, "垫江");
        sl.put(5032, "武隆");
        sl.put(5033, "忠县");
        sl.put(5034, "开县");
        sl.put(5035, "云阳");
        sl.put(5036, "奉节");
        sl.put(5037, "巫山");
        sl.put(5038, "巫溪");
        sl.put(5039, "黔江");
        sl.put(5040, "石柱");
        sl.put(5041, "秀山");
        sl.put(5042, "酉阳");
        sl.put(5043, "彭水");
        sl.put(5081, "江津");
        sl.put(5082, "合川");
        sl.put(5083, "永川");
        sl.put(5084, "南川");
        sl.put(5101, "成都");
        sl.put(5103, "自贡");
        sl.put(5104, "攀枝花");
        sl.put(5105, "泸州");
        sl.put(5106, "德阳");
        sl.put(5107, "绵阳");
        sl.put(5108, "广元");
        sl.put(5109, "遂宁");
        sl.put(5110, "内江");
        sl.put(5111, "乐山");
        sl.put(5113, "南充");
        sl.put(5114, "眉山");
        sl.put(5115, "宜宾");
        sl.put(5116, "广安");
        sl.put(5117, "达州");
        sl.put(5118, "雅安");
        sl.put(5119, "巴中");
        sl.put(5120, "资阳");
        sl.put(5132, "阿坝");
        sl.put(5133, "甘孜");
        sl.put(5134, "凉山");
        sl.put(5201, "贵阳");
        sl.put(5202, "六盘水");
        sl.put(5203, "遵义");
        sl.put(5204, "安顺");
        sl.put(5205, "兴义");
        sl.put(5206, "凯里");
        sl.put(5207, "都匀");
        sl.put(5222, "铜仁");
        sl.put(5223, "黔西南");
        sl.put(5224, "毕节");
        sl.put(5226, "黔东南");
        sl.put(5227, "黔南");
        sl.put(5301, "昆明");
        sl.put(5302, "怒江");
        sl.put(5303, "曲靖");
        sl.put(5304, "玉溪");
        sl.put(5305, "保山");
        sl.put(5306, "昭通");
        sl.put(5307, "丽江");
        sl.put(5308, "普洱");
        sl.put(5309, "临沧");
        sl.put(5310, "版纳");
        sl.put(5323, "楚雄");
        sl.put(5325, "红河");
        sl.put(5326, "文山");
        sl.put(5328, "西双版纳");
        sl.put(5329, "大理");
        sl.put(5331, "德宏");
        sl.put(5333, "怒江傈");
        sl.put(5334, "迪庆");
        sl.put(5401, "拉萨");
        sl.put(5421, "昌都");
        sl.put(5422, "山南");
        sl.put(5423, "日喀则");
        sl.put(5424, "那曲");
        sl.put(5425, "阿里");
        sl.put(5426, "林芝");
        sl.put(6101, "西安");
        sl.put(6102, "铜川");
        sl.put(6103, "宝鸡");
        sl.put(6104, "咸阳");
        sl.put(6105, "渭南");
        sl.put(6106, "延安");
        sl.put(6107, "汉中");
        sl.put(6108, "榆林");
        sl.put(6109, "安康");
        sl.put(6110, "商洛");
        sl.put(6201, "兰州");
        sl.put(6202, "嘉峪关");
        sl.put(6203, "金昌");
        sl.put(6204, "白银");
        sl.put(6205, "天水");
        sl.put(6206, "武威");
        sl.put(6207, "张掖");
        sl.put(6208, "平凉");
        sl.put(6209, "酒泉");
        sl.put(6210, "庆阳");
        sl.put(6211, "定西");
        sl.put(6212, "陇南");
        sl.put(6229, "临夏");
        sl.put(6230, "甘南");
        sl.put(6301, "西宁");
        sl.put(6302, "格尔木");
        sl.put(6321, "海东");
        sl.put(6322, "海北");
        sl.put(6323, "黄南");
        sl.put(6325, "海南");
        sl.put(6326, "果洛");
        sl.put(6327, "玉树");
        sl.put(6328, "海西");
        sl.put(6401, "银川");
        sl.put(6402, "石嘴山");
        sl.put(6403, "吴忠");
        sl.put(6404, "固原");
        sl.put(6405, "中卫");
        sl.put(6501, "乌鲁木齐");
        sl.put(6502, "克拉玛依");
        sl.put(6503, "奎屯");
        sl.put(6521, "吐鲁番");
        sl.put(6522, "哈密");
        sl.put(6523, "昌吉");
        sl.put(6527, "博尔塔拉");
        sl.put(6528, "巴音郭楞");
        sl.put(6529, "阿克苏");
        sl.put(6530, "克孜勒苏");
        sl.put(6531, "喀什");
        sl.put(6532, "和田");
        sl.put(6540, "伊犁");
        sl.put(6542, "塔城");
        sl.put(6543, "阿勒泰");
        sl.put(6544, "石河子");
        sl.put(7101, "台湾");
        sl.put(8101, "香港");
        sl.put(8201, "澳门");
        sl.put(8301, "钓鱼岛");
        sl.put(9801, "华盛顿DC");
        sl.put(9802, "阿拉斯加州");
        sl.put(9803, "亚利桑那州");
        sl.put(9804, "阿肯色州");
        sl.put(9805, "加利福尼亚州");
        sl.put(9806, "科罗拉多州");
        sl.put(9807, "康涅狄格州");
        sl.put(9808, "特拉华州");
        sl.put(9809, "佛罗里达州");
        sl.put(9810, "佐治亚州");
        sl.put(9811, "夏威夷州");
        sl.put(9812, "爱达荷州");
        sl.put(9813, "伊利诺伊州");
        sl.put(9814, "印第安纳州");
        sl.put(9815, "艾奥瓦州");
        sl.put(9816, "堪萨斯州");
        sl.put(9817, "肯塔基州");
        sl.put(9818, "路易斯安那州");
        sl.put(9819, "缅因州");
        sl.put(9820, "马里兰州");
        sl.put(9821, "马萨诸塞州");
        sl.put(9822, "密歇根州");
        sl.put(9823, "明尼苏达州");
        sl.put(9824, "密西西比州");
        sl.put(9825, "密苏里州");
        sl.put(9826, "蒙大拿州");
        sl.put(9827, "内布拉斯加州");
        sl.put(9828, "内华达州");
        sl.put(9829, "新罕布什尔州");
        sl.put(9830, "新泽西州");
        sl.put(9831, "新墨西哥州");
        sl.put(9832, "纽约州");
        sl.put(9833, "北卡罗来纳州");
        sl.put(9834, "北达科他州");
        sl.put(9835, "俄亥俄州");
        sl.put(9836, "俄克拉何马州");
        sl.put(9837, "俄勒冈州");
        sl.put(9838, "宾夕法尼亚州");
        sl.put(9839, "罗得岛州");
        sl.put(9840, "南卡罗来纳州");
        sl.put(9841, "南达科他州");
        sl.put(9842, "田纳西州");
        sl.put(9843, "得克萨斯州");
        sl.put(9844, "犹他州");
        sl.put(9845, "佛蒙特州");
        sl.put(9846, "弗吉尼亚州");
        sl.put(9847, "华盛顿州");
        sl.put(9848, "西弗吉尼亚州");
        sl.put(9849, "威斯康星州");
        sl.put(9850, "怀俄明州");
        sl.put(9851, "亚拉巴马州");
        sl.put(9901, "美国");
        sl.put(9902, "澳大利亚");
        sl.put(9903, "加拿大");
        sl.put(9904, "英国");
        sl.put(9905, "日本");
        sl.put(9906, "新加坡");
        sl.put(9907, "德国");
        sl.put(9908, "法国");
        sl.put(9909, "韩国");
        sl.put(9910, "比利时");
        sl.put(9911, "新西兰");
        sl.put(9912, "瑞典");
        sl.put(9913, "瑞士");
        sl.put(9914, "荷兰");
        sl.put(9915, "阿联酋");
        sl.put(9916, "芬兰");
        sl.put(9917, "丹麦");
        sl.put(9918, "泰国");
        sl.put(9919, "西班牙");
        sl.put(9921, "意大利");
        sl.put(9922, "挪威");
        sl.put(9924, "奥地利");
        sl.put(9925, "爱尔兰");
        sl.put(9926, "马来西亚");
        sl.put(9927, "尼日利亚");
        sl.put(9928, "俄罗斯");
        sl.put(9929, "巴西");
        sl.put(9930, "南非");
        sl.put(9931, "葡萄牙");
        sl.put(9932, "墨西哥");
        sl.put(9933, "印尼");
        sl.put(9934, "越南");
        sl.put(9935, "以色列");
        sl.put(9936, "科威特");
        sl.put(9937, "希腊");
        sl.put(9938, "匈牙利");
        sl.put(9939, "阿根廷");
        sl.put(9940, "印度");
        sl.put(9941, "柬埔寨");
        sl.put(9942, "埃及");
        sl.put(9943, "土耳其");
        sl.put(9999, "其他");
    }
}
